package br.edu.utfpr.md.tads.server;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;

import br.edu.utfpr.md.tads.resources.ListaTelefonicaResource;

/**
 *
 * @author Adriano
 */
@ApplicationPath("rest")
public class ServerREST extends Application{
    private final Set<Class<?>> classes;

    public ServerREST() {
        HashSet<Class<?>> c = new HashSet<Class<?>>();
        c.add(ListaTelefonicaResource.class);
        classes = Collections.unmodifiableSet(c);
    }

    @Override
    public Set<Class<?>> getClasses() {
        return classes;
    }

}
